home *** CD-ROM | disk | FTP | other *** search
- Path: sourcery.han.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <31545d88@internet.dk> <600.6659T133T1177@jroger.in-berlin.de>
- From: "Olaf Barthel" <olsen@sourcery.han.de>
- Date: Thu, 28 Mar 1996 00:01:03 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: info on icon.library
- Message-ID: <13213833@sourcery.han.de>
-
- In Article <600.6659T133T1177@jroger.in-berlin.de>, Sebastian Rittau <jroger@jroger.in-berlin.de> wrote:
- > In <31545d88@internet.dk> Stig Joergensen <s-t-j@internet.dk> wrote:
- >
- > >I was wondering if anybody have some docs about these 2 function is
- > >icon.library :
- >
- > > -$002A GetIcon(name,icon,freelist)(A0/A1/A2)
- > > -$0030 PutIcon(name,icon)(A0/A1)
- >
- > >And if so, please tell me something about the "icon" structure, tnx.
- >
- > Just wait until AT publishes the Includes & Autodocs. Olaf Barthel
- > said some days ago that they will be available in about two weeks
- > on the AT-FTP-Server.
-
- Well... GetIcon() and PutIcon() are kind of a different story. These
- entry points are considered obsolete and thus are no longer documented.
- GetIcon() is a more complex variant of GetDiskObject() for which you have
- to provide a pointer to a DiskObject structure you must have allocated
- before and a pointer to a FreeList structure you must have set up before.
- GetIcon() will read the icon data and fill in the DiskObject structure
- for you, recording all the single memory allocations in the FreeList
- structure so you can later release the memory using FreeFreeList().
- Setting up the FreeList is the primary problem here. PutIcon() does
- very much what PutDiskObject() does but it won't notify Workbench that
- the icon just written has changed. In any event, you don't need these
- two function calls. There is nothing you can gain by using them and
- nothing you lose if you don't use them. Workbench 2.04 through 3.1
- still calls these two routines to read and write volume icons, but
- that shouldn't concern you as this is a feature you cannot rely upon.
- These two function calls are more or less a legacy of the original
- Workbench design put into practice when Workbench used to do its
- object creation and management solely through icon.library.
-
- --
- Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
- Net: olsen@sourcery.han.de
-